package com.leased.service;

import com.leased.exception.DatabaseException;
import com.leased.pojo.CUsers;
import com.leased.request.cuser.CUserListRequest;
import com.leased.response.CUserResponse;
import com.leased.response.MyCarsResponse;
import com.leased.utils.Page;

/**
 * Created by shencx on 2017/8/1.
 */
public interface CUserService {

    Integer addCUserInfo(CUsers cUsers) throws DatabaseException;

    boolean updateCUser(CUsers cUsers) throws DatabaseException;

    Page<CUserResponse> fetchCUserInfoPage(CUserListRequest cUserListRequest) throws DatabaseException;

    CUsers fetchCUserDetail(CUserListRequest cUserListRequest) throws DatabaseException;

    Page<MyCarsResponse> fetchMyFleetPage(CUserListRequest cUserListRequest) throws DatabaseException;
}
